package com.fengwk.user.dao;

import java.util.Collection;
import java.util.List;

import org.apache.ibatis.annotations.Param;

import com.fengwk.support.pndao.DaoGen;
import com.fengwk.user.face.entity.UsRole;

@DaoGen(sqlCols = UsRole.class)
public interface UsRoleDao {
    
	int insert(UsRole usRole);
	int deleteByRoleId(@Param("roleId") Long roleId);
	int updateByRoleId(UsRole usRole);
	int countAll();
	UsRole findByRoleId(@Param("roleId") Long roleId);
	UsRole findByRole(@Param("role") String role);
	List<UsRole> queryInRoleIds(@Param("roleIds") Collection<Long> roleIds);
	List<UsRole> page(@Param("startRow") Integer startRow, @Param("pageSize") Integer pageSize);
	
}